<?php
/**
 *  Enable sessions
 */
if (!session_id())
    session_start();
    
/* DEFINE FILE DIRECTORIES */
define('ARC_FUNCTIONS', TEMPLATEPATH . '/functions');
define('ARC_GLOBAL', TEMPLATEPATH . '/functions/global');
define('ARC_ADMIN', TEMPLATEPATH . '/functions/admin');
define('ARC_CUSTOM', TEMPLATEPATH . '/functions/custom');
define('ARC_JS', get_template_directory_uri() . '/js');
define('ARC_FRAMEWORK', get_template_directory_uri() . '/functions');
define('ARC_CSS', get_template_directory_uri() . '/css/');
define('ARC_HOME', get_template_directory_uri());


/* LOAD GLOBAL ELEMENTS */
require_once(ARC_GLOBAL . '/shortcodes.php');
require_once(ARC_GLOBAL . '/sidebars.php');
require_once(ARC_GLOBAL . '/javascript.php');
require_once(ARC_GLOBAL . '/theme_functions.php');
require_once(ARC_GLOBAL . '/basic.php');
require_once(ARC_GLOBAL . '/nav-output.php');
require_once(ARC_GLOBAL . '/widgets.php');

/* LOAD ADMIN ELEMENTS */
require_once(ARC_ADMIN . '/adm_functions.php');
require_once(ARC_ADMIN . '/adm_interface.php');
require_once(ARC_ADMIN . '/thm_options.php');
require_once(ARC_ADMIN . '/thm_functions.php');
require_once(ARC_ADMIN . '/thm_portfolio.php');
require_once(ARC_ADMIN . '/thm_news.php');
require_once(ARC_ADMIN . '/thm_testi.php');
require_once(ARC_ADMIN . '/write_panels.php');

/* LOAD CUSTOM ELEMENTS */
require_once(ARC_CUSTOM . '/wysiwyg/wysiwyg.php');
if(!function_exists('wp_pagenavi')){require_once(ARC_CUSTOM . '/wp-pagenavi.php');}
//require_once(ARC_CUSTOM . '/user-avatar/user-avatar.php');
?>